//index.js
//获取应用实例
const app = getApp();
Page({
    data: {
        userInfo: {},
        hasUserInfo: false,
        list: [
            {icon:'group_fill',name:'我的公司',page:'/pages/company/list/index'},
            {icon:'lock_fill',name:'加密记事本',page:'/pages/novel/index'}
        ]
    },
    onLoad: function () {
        app.$http.userRequest({router:'getData'},function(data){
            console.log(data);
        });
    },
    girdClick(e){
        wx.navigateTo({
            url:e.currentTarget.dataset.page
        })
    },
    methods:{}
});
